Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

This should set you in the right direction

This code is untested:

Sub Click(Source As Button)
'Presuming the key value is unique, and that you can create a hidden view called "(keylookup)" with the key value in
'the first column, which is sorted

Dim session As New NotesSession
Dim ws As New notesuiworkspace
Dim uidoc As notesuidocument
Dim db As NotesDatabase
Dim view As NotesView
Dim doc As NotesDocument
Dim lookupkey As String
Dim invcount As Long

Set uidoc = ws.currentdocument
lookupkey = uidoc.FieldGetText("key")
Set db = session.CurrentDatabase
Set view = db.GetView("(keylookup)")
Set doc = view.GetDocumentByKey(lookupkey, True)
invcount = doc.invcount(0)
invcount = invcount + Clng(uidoc.FieldGetText("newamount"))
doc.invcount = invcount
Call doc.Save(True, True)


End Sub


Feedback response number WEBB8TMDFB created by ~Justin Chugeromanli on 04/23/2012

Get Doc by Key (~Chloe Minfrees... 20.Apr.12)
. . LotusScript classes? (~Anita Minaster... 20.Apr.12)
. . . . Is it possible? (~Chloe Minfrees... 20.Apr.12)
. . This should set you in the right di... (~Justin Chugero... 23.Apr.12)
. . . . That did it. Thank you! (~Chloe Minfrees... 24.Apr.12)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS